/*
 * @Author: liuzibin
 * @Date: 2023-07-27 01:27:30
 * @Descroption: 获取商品详情
 */

const axios = require("axios");

async function getStoreDetail({ storeId }) {
  const response = await axios.get(
    `https://borderclear.cn//api/store/product/detail/${storeId}`,
    {},
    {
      headers: {
        Accept: "application/json, text/plain, */*",
        Referer: "http://borderclear.cn/admin/merchant/list",
        "User-Agent":
          "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
        "Content-Type": "application/json;charset=UTF-8",
      },
    }
  );
  return response.data.data;
}

module.exports = getStoreDetail;
